/**
 * Created by mapbar_front on 2019/7/31.
 */
import React,{Component} from 'react';
import {ThemeContext} from './../../utils/utils';

class ThemeButton extends Component{
    render(){
        let props = this.props;
        let theme = this.context;
        console.log('ThemeButton---',props);
        console.log('theme.background',theme.background);
        return(
            <button
                {...props}
                style={{backgroundColor: theme.background}}
            />
        )
    }
}
ThemeButton.contextType = ThemeContext;

export default ThemeButton;
